import { createRouter, createWebHistory } from 'vue-router'
// import Container from '@/views/container.vue'
import Layout from '@/views/layout/Layout.vue'
import Login from '@/views/pages/login/Login.vue'
import UserManager from '@/views/pages/userManager/index.vue'

import category from '@/views/pages/category/index.vue'
import goods from '@/views/pages/goods/index.vue'
import pay from '@/views/pages/pay/index.vue'
import order from '@/views/pages/order/index.vue'
import lunbo from '@/views/pages/lunbo/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'container',
      component: Layout,
      children:[
        {path:'/',redirect:"/userManager"},
        {path:'/userManager',component:UserManager},
        {path:'/category',component:category},
        {path:'/goods',component:goods},
        {path:'/pay',component:pay},
        {path:'/order',component:order},
        {path:'/lunbo',component:lunbo},
      
       
      ]
    },
    {
      path: '/login',
      name: 'login',
      component: Login
    }
   
  ]
})

export default router
